/*
 * @Description:
 * @Author: yyang
 * @Date: 2023-04-28 10:08:13
 * @LastEditTime: 2023-05-05 10:51:27
 * @LastEditors: yyang
 */

type colInfo = {
	title: string;
	dataIndex: string;
	key: string;
};

type selInfo = {
	text: string;
	value: string;
};

type checkInfo = {
	key: number | string;
	name: string;
};


// API基础参数说明表头
export const apiBaseCol: Array<colInfo> = [
	{
		title: "名称",
		dataIndex: "name",
		key: "name",
	},
	{
		title: "说明",
		dataIndex: "desc",
		key: "desc",
	},
	{
		title: "参数类型",
		dataIndex: "param",
		key: "param",
	},
	{
		title: "默认值",
		dataIndex: "default",
		key: "default",
	},
];

// 事件参数说明表头
export const eventsCol: Array<colInfo> = [
	{
		title: "事件名",
		dataIndex: "name",
		key: "name",
	},
	{
		title: "说明",
		dataIndex: "desc",
		key: "desc",
	},
	{
		title: "回调参数",
		dataIndex: "callbackParam",
		key: "callbackParam",
	},
];

// 下拉选项数据
export const optionsData: Array<selInfo> = [
	{ text: "杭州", value: "Hangzhou" },
	{ text: "宁波", value: "Ningbo" },
	{ text: "温州", value: "Wenzhou" },
	{ text: "绍兴", value: "Shaoxing" },
	{ text: "湖州", value: "Huzhou" },
];

// 复选框数据
export const checkDataList: Array<checkInfo> = [
	{
		key: 1,
		name: "选项a",
	},
	{
		key: 2,
		name: "选项b",
	},
	{
		key: 3,
		name: "选项c",
	},
];
